<?php

namespace Home\Model;
use Think\Model;
class AdvertModel extends BaseModel
{

    public function findAdvImg()
    {
        //获取首页广告图
        $advImgs=M('advert')->where('pid=79 or pid =80 or pid =81')->field('content, img_url')->order('pid asc')->select();
        //dump($advImgs);
        if(!$advImgs) return false;
        foreach($advImgs as $k => $v)
        {
            $advImgs[$k]['content'] = strip_tags($v['content']);
        }
        return $advImgs;

    }




}